/**
 * 测试关系运算符
 * 1、大于 >
 * 2、大于等于 >=
 * 3、小于 <
 * 4、小于等于 <=
 * 5、等于 ==
 * 6、不等于 !=
 * 7、全等 ===
 * 8、不全等 !==
 */

let first = 100 ;
let second = 100 ;

console.log( first > second );  // false
console.log( first >= second ); // true
console.log( first < second );  // false
console.log( first <= second ); // true
console.log( first == second ); // true
console.log( first != second ); // false

console.log( '- - - - - - - - - - - - - - -' );

let third = 'relational' ;
let fourth = 'relational' ;
let fifth = 'relation' ;

console.log( third > fourth );  // false
console.log( third >= fourth ); // true
console.log( third < fourth );  // false
console.log( third <= fourth ); // true
console.log( third == fourth ); // true
console.log( third != fourth ); // false

console.log( '- - 对于字符串来说是如何比较大小的? - -' );

console.log( fourth > fifth ); // true
console.log( fourth < fifth ); // false

console.log( '- - - - - - - - - - - - - - -' );

let sixth = 9527 ; 
console.log( `sixth = ${sixth} , type : ${typeof sixth}` ); // 模板字符串

let seventh = '9527' ;
console.log( `seventh = ${seventh} , type : ${typeof seventh}` );

// 单纯使用 == 比较时近比较它们表示的值是否相等
console.log( sixth == seventh ); // true
console.log( sixth != seventh ); // false

// === 会比较数值和类型，仅当数值和类型都相同时才返回 true
console.log( sixth === seventh ); // false
// !== 会比较数值和类型，只要 数值 或 类型 当中有一个不相同就返回 true
console.log( sixth !== seventh ); // true